<table>
    <tbody>
        <tr class="prop">
            <td  class="name"><g:message code="user.username.label" default="Username" /></td>
            <td  class="value">${fieldValue(bean: userInstance, field: "username")}</td>
            <td  class="name">&nbsp;</td>
            <td  class="value">&nbsp;</td>
        </tr>

        <tr class="prop">
            <td  class="name"><g:message code="user.roles.label" default="Roles" /></td>
            <td  style="text-align: left;" class="value">
                <ul>
                <g:each in="${userInstance.roles}" var="r">
                    <li><g:link controller="role" action="show" id="${r.id}">${r?.name?.encodeAsHTML()}</g:link></li>
                </g:each>
                </ul>
            </td>
            <td class="name"><g:message code="user.profile.label" default="Profile" /></td>
            <td class="value"><g:link controller="profile" action="show" id="${userInstance?.profile?.id}">${fieldValue(bean: userInstance, field: "profile")}</g:link></td>
        </tr>

        <tr class="prop">
            <td class="name"><g:message code="user.department.label" default="Department" /></td>
            <td class="value">
				<g:link controller="department" action="show" id="${userInstance?.department?.id}">
					${fieldValue(bean: userInstance, field: "department")}
				</g:link>
			</td>

            <td class="name"><g:message code="user.group.label" default="Group" /></td>
            <td class="value">
				<g:link controller="group" action="show" id="${userInstance?.group?.id}">
					${fieldValue(bean: userInstance, field: "group")}
				</g:link>
			</td>
        </tr>

        <tr class="prop">
            <td class="name"><g:message code="user.dateCreated" default="Date Created" />:</td>
            <td class="value"><g:formatDate date="${userInstance?.dateCreated}" /></td>
            <td class="name"><g:message code="user.lastUpdated" default="Last Updated" />:</td>
            <td class="value"><g:formatDate date="${userInstance?.lastUpdated}" /></td>
        </tr>

    </tbody>
</table>
